package com.achievement.mapper;

import com.achievement.domain.entity.BreedEntity;
import com.achievement.domain.param.BreedParam;
import com.achievement.domain.vo.BreedVO;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import org.apache.ibatis.annotations.Param;

import java.util.HashMap;
import java.util.List;


public interface BreedMapper extends BaseMapper<BreedEntity> {
    List<BreedVO> getList(@Param(value = "param") BreedParam param, @Param(Constants.WRAPPER) Wrapper<BreedEntity> queryWrapper);

    List<BreedVO> selectByParam(@Param(value = "param")BreedParam param,@Param(Constants.WRAPPER) Wrapper<BreedEntity> queryWrapper);

    List<HashMap<String, Integer>> listStatistics(@Param(value = "param")BreedParam param,@Param(Constants.WRAPPER) QueryWrapper<BreedEntity> queryWrapper);
}
